from likeshop_api_project.base.mybase import Tools


# 商品详情
class product_details_model(Tools):
    path = '/api/goods/getGoodsDetail'

    def product_details_action(self, id):
        product_details_data = {
            "id": id,
        }
        product_details = self.huihua.get(url=self.hosturl+self.path, params=product_details_data)
        return product_details.json()

if __name__ == '__main__':
    import requests

    s = requests.session()
    shop_list = product_details_model(huihua=s)
    msg = shop_list.product_details_action(id=6)
    print(msg)



